package cn.wolfcode.trip.base.domain;

import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@Setter
@Getter
public class Sign extends BaseDomain{

    public static final Integer STATE_FAIL = 0;//为签到
    public static final Integer STATE_SUCCESS = 1;//已签到


    private User user;//用户id

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date signTime;//签到时间

    private Integer state = STATE_FAIL;//状态

    private Integer count;//签到次数

}